Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / core / database / src / commonMain / kotlin / org / meshtastic / core / database / entity / DiscoverySessionStatus.kt

Displaying Raw • Download

core/database/src/commonMain/kotlin/org/meshtastic/core/database/entity/DiscoverySessionStatus.kt 41414f832f938b655c97bc07509bc140ea16e2a3 (41414f83) Text, 1.91 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.database.entity

T8b949e/** Persisted discovery-session states shared by database queries, scan execution, and recovery. */
Tff7b72object T56d364DiscoverySessionStatus Tb4b4b4{
Tff7b72const Tff7b72val Te6edf3IN_PROGRESS Tff7b72= Ta5d6ff"Ta5d6ffin_progressTa5d6ff"
Tff7b72const Tff7b72val Te6edf3INTERRUPTED Tff7b72= Ta5d6ff"Ta5d6ffinterruptedTa5d6ff"
Tff7b72const Tff7b72val Te6edf3COMPLETE Tff7b72= Ta5d6ff"Ta5d6ffcompleteTa5d6ff"
Tff7b72const Tff7b72val Te6edf3FAILED Tff7b72= Ta5d6ff"Ta5d6fffailedTa5d6ff"
Tff7b72const Tff7b72val Te6edf3STOPPED Tff7b72= Ta5d6ff"Ta5d6ffstoppedTa5d6ff"
Tff7b72const Tff7b72val Te6edf3RESTORED Tff7b72= Ta5d6ff"Ta5d6ffrestoredTa5d6ff"
Tff7b72const Tff7b72val Te6edf3UNRESTORABLE Tff7b72= Ta5d6ff"Ta5d6ffunrestorableTa5d6ff"
Tff7b72const Tff7b72val Te6edf3RESTORE_PENDING_COMPLETE Tff7b72= Ta5d6ff"Ta5d6ffrestore_pending_completeTa5d6ff"
Tff7b72const Tff7b72val Te6edf3RESTORE_PENDING_FAILED Tff7b72= Ta5d6ff"Ta5d6ffrestore_pending_failedTa5d6ff"
Tff7b72const Tff7b72val Te6edf3RESTORE_PENDING_STOPPED Tff7b72= Ta5d6ff"Ta5d6ffrestore_pending_stoppedTa5d6ff"

T8b949e/** SQL literal list required by Room's compile-time query parser for sessions that reconnect can still recover. */
Tff7b72const Tff7b72val Te6edf3RECOVERABLE_SQL_LIST Tff7b72=
Ta5d6ff"Ta5d6ff'Tffd700$Te6edf3IN_PROGRESSTa5d6ff', 'Tffd700$Te6edf3INTERRUPTEDTa5d6ff', 'Tffd700$Te6edf3RESTORE_PENDING_COMPLETETa5d6ff', Ta5d6ff" Tff7b72+
Ta5d6ff"Ta5d6ff'Tffd700$Te6edf3RESTORE_PENDING_FAILEDTa5d6ff', 'Tffd700$Te6edf3RESTORE_PENDING_STOPPEDTa5d6ff'Ta5d6ff"

T8b949e/** In-memory counterpart of [RECOVERABLE_SQL_LIST]. A unit test keeps the two declarations synchronized. */
Tff7b72val Te6edf3RECOVERABLETb4b4b4: Te6edf3SetTff7b72<Tffa657StringTff7b72> Tff7b72=
Te6edf3linkedSetOfTb4b4b4(Te6edf3IN_PROGRESSTb4b4b4, Te6edf3INTERRUPTEDTb4b4b4, Te6edf3RESTORE_PENDING_COMPLETETb4b4b4, Te6edf3RESTORE_PENDING_FAILEDTb4b4b4, Te6edf3RESTORE_PENDING_STOPPEDTb4b4b4)
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s